SOShutdown
C Specification
#include <dolphin/socket.h>
int SOShutdown ( int s, int how );
Description
SOShutdown() shuts down socket send and receive operations.
Arguments
s |
The socket descriptor to shut down. |
how |
Specifies the type of shutdown:
SO_SHUT_RD |
Disables further receive operations. |
SO_SHUT_WR |
Disables further send operations. |
SO_SHUT_RDWR |
Disables further send and receive operations. |
|
Return Values
| zero |
Succeeded. |
SO_EBADF |
Bad socket descriptor. |
SO_EINVAL |
Invalid operation. |
SO_ENETRESET |
Socket library is not initialized. |
SO_ENOTCONN |
Not connected. |
Note: Additional errors may be generated and
returned in future library releases. All the negative return values must be
treated as generic errors.
See Also
SOClose()